  function ncell=fcellmat(str,rvec,cvec,del); 
% function ficel=fcellmat(str,rvec,cvec,del); 
% 
% Create a cell in which the string STR is repeated 
% together with the entries in RVEC and CVEC 
%
% str   String 
% RVEC  Row vector [1 2 3 ]
% CVEC  Col Vector [0 1]
% DEL   (optional) delimiter between rvec and cvec numbers 
%       e.g. ',' '.' 
% 
% Alejandro Justinano (C) 
% ===================================================
if nargin < 4; 
    del = '';
else 
    if isstr(del) == 0 
        error('Input DEL must be a string') 
    end 
end 
    
if nargin < 3 
    error('Insufficient Inputs'); 
end 

nr = length( rvec(:) ); 
nc = length( cvec(:) ); 

ncell = emptycell( nr , nc ); 
hh=1; 
for hh=1:nr; 
    rs = num2str( rvec(hh) );   
    ii=1; 
    for ii=1:nc; 
        ncell(hh,ii) = { [str,rs,del,num2str(cvec(ii))] }; 
    end
end

        
